﻿using SecretTest.Models;

namespace SecretTest
{
    internal class Program
    {/// <summary>
    /// 维吉尼亚加密法测试
    /// </summary>
    /// <param name="args"></param>
        static void Main(string[] args)
        {
            //用户输入明文和密钥
            //加密
            //输出密文
            Console.Write("Please input your plaintext    :");
            string plain=Console.ReadLine();
            Console.Write("Please input your keytext    :");
            string key = Console.ReadLine();
            MyEncoder encoder = new MyEncoder();
            encoder.Plaintext = plain;
            encoder.Key = key;
           
           //调用方法
            encoder.Encode(); 
            //输出密文
            Console.WriteLine($"加密后为{encoder.Cypher}");
            Console.ReadLine();

        }
    }
}